<template>
  <div class='home-cantainer '>
  </div>
</template>


<script>
import {
  TransferDomDirective as TransferDom,
  XDialog,
  XButton,
  Alert,
  Swiper,
  SwiperItem
} from 'vux'
export default {
  directives: {
    TransferDom
  },
  //  home.vue
  data () {
    return {
      myOption: '可交换机和霍建华进货价 !'
    }
  },
  components: {
    XDialog,
    XButton,
    Alert,
    Swiper,
    SwiperItem
  },
  computed: {},
  beforeCreate () {
  },
  created () {
    this.$http.post('/devApi/test/1', {
      name: 'post---哈哈哈',
      age: 27
    }).then(res => {
      console.log(res, 'res')
    })
    this.$http.get('/devApi/test/2', {
      data: {
        name: 'get---哈哈哈',
        age: 28
      }
    }).then(res => {
      console.log(res, 'res')
    })
  },
  beforeMounte () {
  },
  mounted () { }
}
</script>
<style lang='less'>
@import './style.less';
</style>

